<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">

	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="100">货品id</th>
			  <?php foreach ($data as $v){?>
			  <th width="150"><?php echo $v['aname']?></th>
        	  <?php }?>
			  <th width="180">库存</th>
			  <th width="180">货号</th>
			  <th width="200">操作</th>
			</tr>
			
    <form action="" method="post" >
    <tr>
        <td width="150">添加货品</td>
        <?php foreach ($data as $v){?>
            <td>
                <select name="combine[]" id="">
                    <option value="">请选择</option>
                    <?php foreach ($v['value'] as $value){?>
                        <option value="<?php echo $value['shop_attributecol']?>" <?php if(in_array($value['sid'],$id)){?>
                selected
               <?php }?>><?php echo $value['shop_attributecol']?></option>
                        <!--<?php if($value['sid']==$v['cid']){?>
                selected
               <?php }?>-->
                    <?php }?>
                </select>
            </td>
        <?php }?>
        <td>
            <input type="text" name="inventory" id="" placeholder="<?php echo $oldData['inventory']?>">
        </td>
        <td>
            <input type="text" name="number" id="" placeholder="<?php echo $oldData['number']?>">
        </td>
        <td>
        	<!--<input type="button" name="" id="" value="添加" />
            <a href="<?php echo U('add',array('sid'=>$_GET['sid']))?>">添加</a>-->
            <input type="hidden" name="slid" value="<?php echo $_GET['slid']?>" />
            <input type="hidden" name="sid" value="<?php echo $_GET['sid']?>" />
			<button  type="submit" style="display: inline-block"> 确定</button>
        </td>
    </tr>
    </form>
		</table>
		<!--<style type="text/css">
			#self-page ul.pagination li{
				background: #ccc;
				margin-left: 3px;
			}
		</style>
		<center id="self-page">
			<ul class="pagination">
				<?php echo $page?>
			</ul>
		</center>-->
	</body>
</html>
